<?php


namespace Home\Controller;
use OT\DataDictionary;

/**
 * 前台首页控制器
 * 主要获取首页聚合数据
 */
class IndexController extends HomeController {

	//系统首页
    public function index(){

        $category = D('Category')->getTree();
        $lists    = D('Document')->lists(null);
		//$picture=$this->lists('Changjing');
		$picture  = D('Changjing')->order('id asc')->select();
		//var_dump($picture);exit;
		$this->assign('chang_jing',$picture);
  

        $this->assign('category',$category);//栏目
        $this->assign('lists',$lists);//列表
        $this->assign('page',D('Document')->page);//分页

                 
        $this->display();
    }
	
	
	//
	public function quanjing($id=0){
		$data=$_GET['id'];
		//var_dump($data);exit;
		
		//}
		//$data=I('post.');
		//$id=$data['id'];
	    $this->display();
	}
	
    
	


}